from math import log

def messagesPersec(n):
	pml = 0.01
	acc = 0.999
	return n*log(1 - acc) / (log(pml) * 10)

print messagesPersec(4)